
//
//  IOosEntryParser.h
//  oos4ios
//
//  Created by Pablo Gonzalez on 4/12/11.
//  Copyright 2011 11870.com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <oos4ios/Model/OosObject.h>
#import "IOosParserCallback.h"

@class OosEntry;

@protocol IOosEntryParser <NSObject>

- (id) parseEntry: (OosEntry *) entry;

- (void) parseEntry: (OosEntry *) entry 
       withCallback: (id<IOosParserCallback>) callback;

- (OosEntry *) reverseParseEntry: (OosObject *) object;

- (void) reverseParseObject: (OosObject*)object 
                  intoEntry: (OosEntry*)entry;

- (void) reverseParseEntry: (OosObject *) object 
              withCallback: (id<IOosParserCallback>) callback;

- (void) reverseParseObject: (OosObject*)object 
                  intoEntry: (OosEntry*)entry 
               withCallback: (id<IOosParserCallback>) callback;

#pragma mark - json addons

- (id) parseJsonEntry:(NSDictionary *)jsonEntry;

- (void)parseJsonEntry:(NSDictionary *)jsonEntry 
          withCallback:(id<IOosParserCallback>)callback;

@end
